import port from '../../utils/port'
/**
 * （不建议写成 request.post(xxx)，因为这样 post 时，无法 params 与 data 同时传参）
 *
 * 
 * @method scenic banner管理
 * 
 */
// 资讯列表
export const announList = (data) => {
	return port({
		url: '/web/information',
		method: 'get',
		headers:data
	})
}
// 资讯添加
export const announAdd = (data,token) => {
	return port({
		url: '/web/information/addData',
		method: 'post',
        data,
		headers:token
	})
}
// 资讯编辑
export const announEdit = (data,token) => {
	return port({
		url: '/web/information/editData',
		method: 'post',
        data,
		headers:token
	})
}
// 资讯删除
export const announDele = (data,token) => {
	return port({
		url: '/web/information/delData',
		method: 'post',
        data,
		headers:token
	})
}


// 公告列表
export const announArr = (data) => {
	return port({
		url: '/web/notice',
		method: 'get',
		headers:data
	})
}
// 公告添加
export const announArrAdd = (data,token) => {
	return port({
		url: '/web/notice/addData',
        method: 'post',
        data,
		headers:token
	})
}
// 公告编辑
export const announArrEdit = (data,token) => {
	return port({
		url: '/web/notice/editData',
        method: 'post',
        data,
		headers:token
	})
}
// 公告切换
export const announArrStatus = (data,token) => {
	return port({
		url: '/web/notice/setState',
        method: 'post',
        data,
		headers:token
	})
}
// 公告删除
export const announArrDele = (data,token) => {
	return port({
		url: '/web/notice/delData',
        method: 'post',
        data,
		headers:token
	})
}